﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using ThouShaltNotBrick.Logic.Collisions;
using GameUtils;

namespace ThouShaltNotBrick.Logic.GeneralObjects
{
    public sealed class Ball
    {
        #region Constants
        #endregion

        #region Properties
        #region Position
        /// <summary>
        /// Position property.
        /// </summary>
        public Vector2 Position { get; set; }
        #endregion

        #region PrevPosition
        /// <summary>
        /// PrevPosition property.
        /// </summary>
        public Vector2 PrevPosition { get; set; }
        #endregion

        #region Speed
        /// <summary>
        /// Speed property.
        /// </summary>
        public PolarVector2 Speed { get; set; }
        #endregion

        #region Radius
        /// <summary>
        /// Radius property.
        /// </summary>
        public float Radius { get; set; }
        #endregion

        #region PrevCollisionObject
        /// <summary>
        /// PrevCollisionObject property.
        /// </summary>
        public CollisionObject PrevCollisionObject { get; set; }
        #endregion
        #endregion

        #region Events
        #endregion

        #region Constructors
        public Ball(
            Vector2 pPosition,
            PolarVector2 pSpeed,
            float pRadius)
        {
            Position = pPosition;
            PrevPosition = pPosition;
            Speed = pSpeed;
            Radius = pRadius;
            PrevCollisionObject = null;
        }
        #endregion
    }
}